import request from "@/utils/request"
const BASE_URL = process.env.VUE_APP_BASE_URL_WORK

/**
 * 任务归档
 * @param {*} data
 */
export function workTaskArchiveAPI(taskId) {
	return request({
		url: BASE_URL + `workTask/archiveByTaskId/${taskId}`,
		method: "post"
	})
}

/**
 * 归档任务激活
 * @param {*} data
 */
export function workTaskRecoverAPI(taskId) {
	return request({
		url: BASE_URL + `work/work/activation/${taskId}`,
		method: "post"
	})
}
